package com.example.rxjava;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class BasicController {

    @GetMapping("/")
    public Mono<Hello> sayHelloWorld() {
        return Mono.just(new Hello("zhangsan@a",12));
    }
}
